<?php
/**
 * regd by PhpStorm.
 * User: lee
 * Date: 2017/11/29
 * Time: 17:31
 */

namespace Biz\validate;

use Biz\model\ShopIdentifyImage as mShopIdentifyImage;

class ShopIdentifyImage extends \Doraemon\pockets\validate\Base {


    public static function rules() {
        return [
            ['key','required',null,'请从正确渠道传值 KEY',['signup']],
            ['key','InList',['list'=>mShopIdentifyImage::getSupportKey()],'请从正确渠道填写',['signup','update']],

            ['url_hash','regex',['pattern'=>'/^[a-zA-Z0-9\,]{0,8000}$/'],'请从正确渠道传值 HASH',['signup','update']],

        ];

    }

}